package com.molichuxing.services.infrastructure.service.impl;

import com.molichuxing.services.infrastructure.dto.request.create.OrderDealerChangeCarsLogCreateDto;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.bean.OrderDealerChangeCarsLogBean;
import com.molichuxing.services.infrastructure.dao.OrderDealerChangeCarsLogMapper;
import com.molichuxing.services.infrastructure.service.OrderDealerChangeCarsLogService;

/**
 * <p>
 * 换车历史表 服务实现类
 * </p>
 *
 * @author renzhengyu
 * @since 2019-08-12
 */
@Service("orderDealerChangeCarsLogService")
public class OrderDealerChangeCarsLogServiceImpl  implements OrderDealerChangeCarsLogService {

    @Autowired
    private OrderDealerChangeCarsLogMapper orderDealerChangeCarsLogMapper;

    @Override
    public Integer createChangeCarsLog(OrderDealerChangeCarsLogCreateDto orderDealerChangeCarsLogCreateDto) {

        OrderDealerChangeCarsLogBean bean = new OrderDealerChangeCarsLogBean();
        BeanUtils.copyProperties(orderDealerChangeCarsLogCreateDto, bean);
        return orderDealerChangeCarsLogMapper.create(bean);
    }
}
